<!DOCTYPE HTML>
<html>
<head>
  <title>Video.js Test Suite</title>

  <!-- Sinon -->
  <script src="../node_modules/sinon/pkg/sinon.js"></script>
  <script src="../node_modules/sinon/pkg/sinon-ie.js"></script>

  <!-- QUnit -->
  <link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css" />
  <script src="../node_modules/qunitjs/qunit/qunit.js"></script>

  <!-- Video.js CSS -->
  <link rel="stylesheet" href="../build/files/video-js.css" type="text/css">

  <!-- LIB COMPILED WITH NOT COMPILED TESTS
    Check publicly available APIs against compiled lib
  -->
  <script type="text/javascript">

    // Test AMD Support
    // window.define = function(a, b){
    //   console.log(a, b);
    // };
    // define.amd = true;

    // Test CJS Support
    // Have to remove qunit and tests to because module becomes a function
    // window.module = window.exports = {};
    // window.module.exports = {};

    (function(){

      // ADD NEW TEST FILES HERE
      var tests = [
        'test/unit/test-helpers.js',
        'test/unit/api.js'
      ];
      var projectRoot = '../';
      var scripts = [];

      scripts = scripts.concat(['build/files/minified.video.js'], tests);

      for (var i = 0; i < scripts.length; i++) {
        document.write( "<script src='" + projectRoot + scripts[i] + "'><\/script>" );
      }

    })()
  </script>

</head>
<body>
  <div>
    <h1 id="qunit-header">Video.js Test Suite</h1>
    <h2 id="qunit-banner"></h2>
    <div id="qunit-testrunner-toolbar"></div>
    <h2 id="qunit-userAgent"></h2>
    <ol id="qunit-tests"></ol>
    <div id="qunit-fixture"></div>
  </div>
</body>
</html>
